﻿<div ng-app="app"><!--added this-->
    <div ng-controller="HomeController">
        <br />
        <div ng-show="!status.isLoggedIn">
            <input placeholder="Username..." class="form-control" ng-model="user.username" />
            <input placeholder="Password..." class="form-control" ng-model="user.password" />
            <button ng-click="login()" class="btn btn-default">Submit</button>
        </div>
        <div ng-show="status.isLoggedIn">
            <button ng-click="logout()" class="btn btn-default">Logout</button>
            <div class="well" ng-repeat="t in tasks">
                {{t.Description}}<br />
                <button class="btn btn-danger" ng-click="deleteTask(t.ToDoId)">Delete</button>
            </div>
        </div>
    </div>
</div>